package com.suyang.syt.model.dto;

/**
 * 专门用来返回Ajax处理之后结果json数据的对象
 * @author Administrator
 * 
 */
public class AjaxObj {
	
	/**结果 0表示失败 1表示成功*/
	private int result;
	
	/**提示信息*/
	private String msg;
	
	/**附加对象，用来存储一些特定的返回信息*/
	private Object obj;
	
	/**存放图表用的开始时间*/
	private String start;
	
	/**存放表表用的结束时间*/
	private String end;

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public String getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public AjaxObj() {
		this.result = 1;
	}

	public AjaxObj(int result, String msg, Object obj, String start, String end) {
		super();
		this.result = result;
		this.msg = msg;
		this.obj = obj;
		this.start = start;
		this.end = end;
	}

	public AjaxObj(int result, String msg, Object obj) {
		super();
		this.result = result;
		this.msg = msg;
		this.obj = obj;
	}

	public AjaxObj(int result, String msg) {
		super();
		this.result = result;
		this.msg = msg;
	}

	public AjaxObj(int result) {
		super();
		this.result = result;
	}

}